<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css"
              href="<?php echo Yii::app()->request->baseUrl; ?>/backend/css/screen.css"
              media="screen, projection" />
        <link rel="stylesheet" type="text/css"
              href="<?php echo Yii::app()->request->baseUrl; ?>/backend/css/print.css"
              media="print" />
        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="/demo/backend/assets/986d294a/css/ie.css" media="screen, projection" />
        <![endif]-->

        <link rel="stylesheet" type="text/css"
              href="<?php echo Yii::app()->request->baseUrl; ?>/backend/css/main.css" />
        <link rel="stylesheet" type="text/css"
              href="<?php echo Yii::app()->request->baseUrl; ?>/backend/css/form.css" />
        <link rel="stylesheet" type="text/css"
              href="<?php echo Yii::app()->request->baseUrl; ?>/backend/css/prettyPhoto.css" />
        <link
            href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
            rel="stylesheet" type="text/css" />
        <link
            href="<?php echo Yii::app()->request->baseUrl; ?>/css/contents.css"
            rel="stylesheet" type="text/css" />
        <script
            src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.7.1.min.js"
        type="text/javascript"></script>
        <script
        src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
        <script type="text/javascript"
        src="<?php echo Yii::app()->request->baseUrl; ?>/backend/js/jquery.yiiactiveform.js"></script>
        <script type="text/javascript"
        src="<?php echo Yii::app()->request->baseUrl; ?>/backend/js/backend.js"></script>
        <script type="text/javascript"
        src="<?php echo Yii::app()->request->baseUrl; ?>/backend/js/jquery.prettyPhoto.js"></script>
        <script type="text/javascript"
        src="<?php echo Yii::app()->request->baseUrl; ?>/backend/ckeditor/ckeditor.js"></script>
        <title><?php echo $this->pageTitle; ?></title>

        <script type="text/javascript" charset="utf-8">
            $(document).ready(function(){
                $("a[rel^='prettyPhoto']").prettyPhoto({show_title: true,social_tools: '',deeplinking: false});
                $.ajax({
                	 url : '<?php echo Yii::app()->request->baseUrl; ?>/backend/admin/showmoney',
                	 type : "POST",
                	 beforesend:function(){
                  		$('#totalamount').html('<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/ajax-loader.gif"/>');       
                      },
                	 success:function(resp)
                	        {  
                	        	$('#totalamount').html(resp);
                	        }

                });
            });
        </script>
    </head>
    <body>

        <div class="container" id="page">
            <div id="nav">
                <div class="wrap">

                    <ul class="left">
                        <li><a
                                href="<?php echo Yii::app()->request->baseUrl; ?>/backend/admin"
                                id="visit_site" target="_blank">Visit Website</a></li>
                    </ul>

                    <ul class="right">
                        <li>Welcome, <strong>Admin</strong>&nbsp;|&nbsp;</li>

                        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/backend/admin/lode">Settings</a>&nbsp;|&nbsp;</li>
                        <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/backend/admin/logout">Sign out</a></li>
                    </ul>

                </div>

            </div>

            <div id="header">

                <div id="totalamount" style="float: left; height:50px;width:300px;"></div>
                <div class="clear"></div>

            </div>
            <div id="site-content">
                <div id="left-sidebar">

                    <ul id="yw0">
                        <li class="list_active"><a class="menu_0"
                                                   href="<?php echo Yii::app()->request->baseUrl; ?>/backend/admin"><span
                                    id="menu_dashboard" class="micon"></span>Dashboard</a></li>
                        <li id="menu_0"><a id="menu_3" class="menu_3"
                                           href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/withdraw'; ?>">
                                           <span id="menu_page" class="micon"></span>
                                Withdraw</a>
                        </li>                                    
                        <li id="menu_1"><a class="menu_1" href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/bomb'; ?>"><span
                                    id="menu_content" class="micon"></span>Game Bomb</a>
                        </li>
                        <li id="menu_2"><a id="menu_2" class="menu_2"
                                           href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/blackorwhite'; ?>"><span id="menu_taxonomy" class="micon"></span>BlackorWhite</a>
                        </li>
                        <li id="menu_3"><a id="menu_3" class="menu_3"
                                           href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/luckytrain'; ?>"><span id="menu_page" class="micon"></span>Game
                                Lucky Train</a>
                        </li>
                        <li id="menu_4"><a id="menu_4" class="menu_4"
                                           href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/news'; ?>"><span id="menu_resource" class="micon"></span>Infomation News</a>
                        </li>
                        <li id="menu_6"><a id="menu_6" class="menu_6"
                                           href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/users'; ?>"><span id="menu_user" class="micon"></span>User</a>
                        </li>
                        <li id="menu_7"><a id="menu_7" class="menu_7"
                                           href="javascript:void(0);"><span id="menu_manage" class="micon"></span>Lô đề</a>
                            <ul>
                                <li><a href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/kqxs'; ?>">Kết quả xổ số‘</a></li>
                            </ul>
                            <ul>
                                <li><a href="<?php echo Yii::app()->request->baseUrl.'/backend/admin/lode'; ?>">Trả tiền cho user</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
                <div id="main-content-zone">
                    <div class="page-content">
                        <div>
                            <?php echo $content; ?>
                            <div style="clear: both"></div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>

            </div>

        </div>
        <!-- page -->
        <script type="text/javascript">
            $(document).ready(function () {
                //Hide the second level menu
                $('#left-sidebar ul li ul').hide();            
                //Show the second level menu if an item inside it active
                $('li.list_active').parent("ul").show();
            
                $('#left-sidebar').children('ul').children('li').children('a').click(function () {                    
                
                    if($(this).parent().children('ul').length>0){                  
                        $(this).parent().children('ul').toggle();    
                    }
                });
            });
        </script>
        <script type="text/javascript">
        </script>
    </body>
</html>
